public class infiniteLoop {
    public static void main(String[] args) {
        int count = 0;
        while (true) {
            if (count < 10) {
                System.out.println(count);
                count++;
            } else {
                break;
            }
        }
    }
}
